package com.chandra.pos.dao.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by IntelliJ IDEA.
 * UserEntity: root
 * Date: 6/2/12
 * Time: 1:11 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "PAYMENT_TYPES")
public class PaymentTypeEntity {


    private long id;


    private String name;

    private String description;


    @Id
    @GeneratedValue
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public PaymentTypeEntity() {

    }

    public PaymentTypeEntity(long id) {
        this.id = id;

    }

    public PaymentTypeEntity(long id, String name) {
        this.id = id;
        this.name = name;
    }
}
